﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Twitter;

namespace FriendsNearbyBot.Tests
{
    [Ignore]
    [TestFixture]
    public class StringNormalizerFixture
    {
        [Test]
        public void ToLower()
        {
            StringNormalizer stringNormalizer = new StringNormalizer();

            string result = stringNormalizer.Normalize("aA bB CC dd");

            Assert.AreEqual("aa bb cc dd", result);
        }

        [Test]
        public void ReplacesTabsWithSpaces()
        {
            StringNormalizer stringNormalizer = new StringNormalizer();

            string result = stringNormalizer.Normalize("aa\tbb");

            Assert.AreEqual("aa bb", result);
        }

        [Test]
        public void RemoveTwoSpaces()
        {
            StringNormalizer stringNormalizer = new StringNormalizer();

            string result = stringNormalizer.Normalize("aa  bb");

            Assert.AreEqual("aa bb", result);
        }

        [Test]
        public void RemoveThreeSpaces()
        {
            StringNormalizer stringNormalizer = new StringNormalizer();

            string result = stringNormalizer.Normalize("aa   bb");

            Assert.AreEqual("aa bb", result);
        }

        [Test]
        public void RemoveLeadingAndTrailingSpaces()
        {
            StringNormalizer stringNormalizer = new StringNormalizer();

            string result = stringNormalizer.Normalize("  aa bb   ");

            Assert.AreEqual("aa bb", result);
        }
    }
}
